package com.gc.ordersys2.mapper;

import com.gc.ordersys2.entity.Cart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author cuijianhao
 * @since 2024-09-05
 */
public interface CartMapper extends BaseMapper<Cart> {
    @Select("select cart.* , product.id as pid,pname,price,old_price,proimg from cart,product where cart.pro_id = product.id and desk_id = ${deskId}")
    List<Cart> getList(Cart cart);
}
